var twoSum = function(numbers, target) {
  const map = new Map();
  for(let i = 0 ; i < numbers.length ; i++){
      let num = target - numbers[i];
      if(map.has(numbers[i])){
          return [map.get(numbers[i])+1,i+1];
      }else{
          map.set(num , i);
      }
      
  }
};
console.log(twoSum([2,7,11,15],9));